{# src/Abzu/ArticlesBundle/Resources/views/Articles/edit.html.twig #}
{% extends 'AbzuArticlesBundle::base.html.twig' %}

{% block title %}{{ article.title }}{% endblock %}

{% block body %}
    <section class="section">
    <header><h1>Edit article: {{ article.title }}</h1></header>
    {% if app.session.hasFlash('notice') %} 
        <div class="abzu-article-notice">
        {{ app.session.flash('notice') }}
        </div>
    {% endif %}
    <p>
    {% include 'AbzuArticlesBundle:Articles:form.html.twig' with { 'form': form, 'article': article } %}
    </p>
    <div style="clear: both;">
        <a href="{{ path('AbzuArticlesBundle_homepage') }}">Back to list</a>&nbsp;
        <a href="{{ path('AbzuArticlesBundle_articles_show', { 'id': article.id, 'slug': article.slug }) }}">Show</a>&nbsp;
    </div>
    </section>
{% endblock %}